Conversation
…orean, for instance, when an a.md file contains links to other local md files in the format of [第一章](/第一章/第一章.md), clicking on these links fails to open the local md files normally. However, by converting these languages to UTF-8 encoding, the md files can now be opened without issues
Markdown-it percent-encodes non-ASCII characters in link hrefs (e.g. Chinese/Japanese/Korean filenames). The openFile handler passed these encoded paths directly to Utils.joinPath, resulting in file-not-found errors. Apply decodeURIComponent before constructing the file URI. Fixes markmap#73
|
Thanks for the PR and the detailed screenshots — you've correctly identified the root cause: the webview renders non-ASCII hrefs percent-encoded, so the extension tries to open a file literally named Two problems with the current approach, though:
Could you rework the fix in |
fix:In scenarios involving languages such as Chinese, Japanese, and Korean, for instance, when an a.md file contains links to other local md files in the format of 第一章, clicking on these links fails to open the local md files normally. However, by converting these languages to UTF-8 encoding, the md files can now be opened without issues

